<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>系统发信息</title>
<jsp:include page="/WEB-INF/backstage/util.jsp" />
<script type="text/javascript">
	function test(obj) {
		var b = obj.value;
		var sp = document.getElementById("sp");
		if (b.length < 100) {
			sp.innerText = b.length + "/250"
		} else {
			obj.value = b.substring(0, 250);
			sp.innerText = "250/250";
		}
	}
	$(document).ready(function(){
		$("#btn").click(function(){//绑定
			document.forms[0].action="/bsc/bis_wechat_record/selectbis_wechat_record";//跳转
			document.forms[0].submit();
			
		});
		$("#btn2").click(function(){//绑定
			document.forms[0].action="/bsc/bis_wechat_record/list2";//跳转
			document.forms[0].submit();
		});

	$("#btn3").click(function() {//绑定
		var openid=$("input[name=openid]").val();	
		 document.forms[0].action = "/bsc/bis_wechat_record/saveBis_wechat_record?openid1="+ openid;
		 document.forms[0].submit();  
	});
	});

</script>
</head>
<body>

<form action="/bsc/bis_wechat_record/saveBis_wechat_record" method="post" id="formName">
		<fieldset>
			<legend>发送信息</legend>
			<table class="table-hover table-condensed table-bordered" width="100%">
				<input type="button" value="选择用户" id="btn2" class="btn btn-primary"/></br>
				<label for="opinion_id">发送用户:</label>
			<textarea rows="5" cols="50" id="userids" name="custom_user_id">${userids }</textarea>
			<input type="hidden" name="openid" value="${openids }"/>
			</table>
			<textarea rows="5" cols="50" id="tx" onkeyup=" test(this)" placeholder="请输入发送内容" name="content"></textarea><span id="sp">0/220</span>
		</fieldset>
		 <input type="button" id="btn3" value="发送短信" class="btn btn-primary" >
			<input type="button" value="关闭" id="btn" class="btn btn-primary"/>
			
	</form>
</body>
</html>